{extend name="base" /}
<!-- page specific plugin styles -->
{block name="inline-styles"}
{/block}
<!-- PAGE CONTENT BEGINS -->
{block name="content"}
<div class="page js_show">
    <div class="page__bd">
        <div class="weui-wepay-details" id="ajaxForm">
            <div class="weui-wepay-details__hd">
                <div class="weui-wepay-details__state">
                    <h2 class="weui-wepay-details__title">
                        <img class="weui-media-box__thumb" id="avatar" src="" width="24" height="24">
                        <span id="nickname">张少强</span>
                    </h2>
                    <p class="weui-wepay-details__desc">￥<span id="money">200.00</span></p>
                </div>
            </div>
            <div class="weui-wepay-details__bd">
                <div class="weui-wepay-detail">
                    <div class="weui-wepay-detail__bd">类型：</div>
                    <div class="weui-wepay-detail__ft">提现</div>
                </div>
                <div class="weui-wepay-detail">
                    <div class="weui-wepay-detail__bd">审核人：</div>
                    <div class="weui-wepay-detail__ft">总部</div>
                </div>
                <div class="weui-wepay-detail">
                    <div class="weui-wepay-detail__bd">状态：</div>
                    <div class="weui-wepay-detail__ft" id="status_name"></div>
                </div>
                <div class="weui-wepay-detail">
                    <div class="weui-wepay-detail__bd">申请时间：</div>
                    <div class="weui-wepay-detail__ft" id="ctime"></div>
                </div>
            </div>
            <div class="weui-wepay-details__ft">
                <a href="javascript:history.back();" class="weui-btn weui-btn_primary">确定</a>
            </div>
        </div>
    </div>
    <div class="page__ft">
        <div class="weui-footer weui-footer_fixed-bottom">
            <p class="weui-footer__links">
                <a href="javascript:void(0);" class="weui-footer__link">米粒生活</a>
            </p>
            <p class="weui-footer__text">Copyright © 2008-2018 mlilife.com</p>
        </div>
    </div>
</div>
{/block}
<!-- PAGE CONTENT ENDS -->
<!-- inline scripts related to this page -->
{block name="related-scripts"}
<script type="text/javascript">

    $.ajax({
        url: '/api/v1/member/withdraw_detail',
        type: 'GET',
        dataType: 'json',
        data:{
            id: GetQueryString("id")
        },
    })
    .done(function(json) {
        console.log("success");
        initPageHTML("ajaxForm",json.data);
        $('#avatar').attr('src',json.data.avatar)
    })
    .fail(function() {
        console.log("error");
    })
    .always(function() {
        console.log("complete");
    });
</script>
{/block}